import Vue from "vue";
import VueRouter from "vue-router";

import AboutCom from '../components/AboutCom';
import HomeCom from '../components/HomeCom';

import HomeAaa from '../components/HomeCom/components/HomeAaa';
import HomeBbb from '../components/HomeCom/components/HomeBbb';

Vue.use(VueRouter);

export default new VueRouter({
    routes: [
        {
            path: '/home',
            component: HomeCom,
            children: [
                {
                    path: 'aaa',
                    component: HomeAaa
                },
                {
                    path: 'bbb',
                    component: HomeBbb
                }
            ]
        },
        {
            path: '/about',
            component: AboutCom
        },{
            path: '*',
            redirect: '/Home'
        }
    ]
})